package com.bussiness.system.dao;

import com.bussiness.system.model.MyAuthEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface MyAuthDao {
    int deleteByPrimaryKey(Long id);

    int insert(MyAuthEntity record);

    int insertSelective(MyAuthEntity record);

    MyAuthEntity selectByPrimaryKey(Long id);

    List<MyAuthEntity> selectAuth();

    List<MyAuthEntity> getAuthByParentId(Long parentId);

    List<MyAuthEntity> getAuthBtnByParentId(@Param("parentId") Long parentId);


    List<Map<String, Object>> selectSourceAuth();

    int updateByPrimaryKeySelective(MyAuthEntity record);

    int updateByPrimaryKey(MyAuthEntity record);
}